<template>
  <div>
    <el-dialog
            title="提示"
            :visible.sync="dialogVisible"
            width="30%">
      <div class="al-box-container">
        <ALImage :src="tipImage" class="al-width-50" />
        <div class="al-fontsize-20px">
          {{tipText}}
        </div>
      </div>

      <span slot="footer" class="dialog-footer">
        <el-button type="primary" round
                   @click="sendDataToFather">确 定</el-button>
      </span>
    </el-dialog>
  </div>
</template>

<script>
  import ALImage from "./ALImage";
  export default {
    name: "ALDialogTip",
    //组件
    components: {ALImage},
    //属性
    props: {
      tipImage: {
        type: String,
        default: 'https://alanlee-panda-appointment.oss-cn-shenzhen.aliyuncs.com/images/chahua/undraw_online_chat_d7ek.png'
      },
      tipText: {
        type: String,
        default: '提示消息'
      },
      dialogVisible: {
        type: Boolean,
        default: false
      },
    },

    //数据
    data() {
      return {


      }
    },

    //挂载完成时
    mounted() {

    },

    //方法
    methods: {
      sendDataToFather(){
        this.dialogVisible = false;
        this.$emit("getSonData", false);
      }
    },

    //计算属性
    computed: {},

    //监听
    watch: {}
  }
</script>

<style scoped>

</style>
